<template>
  <el-result icon="success" title="404" subTitle="抱歉，请求错误">
    <template #extra>
      <Button label="返回首页" @click="gotoHome" />
    </template>
  </el-result>
</template>

<script lang="ts" setup>
import { Button } from '@/utils/primevue'
import { useRouter } from 'vue-router'

const router = useRouter()

const gotoHome = () => {
  router.push('/dashboard')
}
</script>
